<template>
    <div>
        <div class="container">
            <div class="demo">
                <wxc-minibar title="好友验证"
                             background-color="#009ff0"
                             text-color="#FFFFFF"
                             @wxcMinibarLeftButtonClicked="minibarLeftButtonClick"
                             @wxcMinibarRightButtonClicked="minibarRightButtonClick"></wxc-minibar>
            </div>
        </div>
        <scroller class="chat-news">
            <div class="chat-news-list">
                <div class="img">
                    <image style="width:140px;height:140px;border-radius:100px;border-width: 2px;border-color:black;margin-left:10px;margin-top: 10px" src="https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3113153671,3782273400&fm=27&gp=0.jpg"></image>
                </div>
                <div class="new_text">
                    <text class="news">莫某  申请加您为好友</text>
                    <text class="news">很高心认识你</text>
                    <div class="input-wrapper">
                        <div class="input-login" @click="allow">
                            <text class="input-login-text">同意</text>
                        </div>
                    </div>
                    <div class="input-wrapper">
                        <div class="input-login" @click="allow" style="margin-top: -105px;background-color: red">
                            <text class="input-login-text">拒绝</text>
                        </div>
                    </div>
                </div>
            </div>
        </scroller>
    </div>
</template>

<script>
    import { WxcMinibar } from 'weex-ui';
    const modal = weex.requireModule('modal');

    export default {
        components: { WxcMinibar },
        methods: {
            minibarLeftButtonClick () {
            },
            minibarRightButtonClick () {
                modal.toast({ 'message': 'click rightButton!', 'duration': 1 });
            }
        }
    };
</script>

<style scoped>
    .chat-news{
        width:750px;
        min-height:1000px;
    }
    .chat-news-list{
        width:750px;
        min-height:160px;
        border-width: 1px;
        border-color:black;
    }
    .img{
        width: 160px;
        height: 160px;
    }
    .new_text{
        width:500px;
        height: 160px;
        margin-top: -160px;
        margin-left: 180px;
    }
    .news{
        height: 80px;
        width:500px;
        display: flex;
        justify-content: left;
        align-items:center;
    }
    .input-login{
        height: 75px;
        width: 120px;
        background-color: #48c9bf;
        border-radius: 10px;
        margin-top:-160px;
    }
    .input-login-text{
        height: 75px;
        width: 120px;
        text-align: center;
        line-height: 80px;
        color: white;
        font-size: 35px;
    }
    .input-wrapper{
        width: 120px;
        margin-left: 448px;
        /*margin-right: 100px;*/
        margin-bottom: 30px;
    }
    input-wrapper-reject{
        width: 120px;
        margin-left: 448px;
        /*margin-right: 100px;*/
        margin-bottom: 30px;
    }
</style>